package com.ts.common.core.constant;

import org.springframework.stereotype.Component;

@Component
public interface UpvoteRedisKey {
    //dk:post:upvote:1:10 -->给帖子id为10的点赞
    //dk:post:upvote:2:20 -->给评论id为20的点赞
    String UPVOTE_KEY = "dk:post:upvote:%s:%s"; //第一个%S是实体类的类型，第二个是实体类的id

    String USER_UPVOTE_NUM_KEY = "dk:post:user:upvote:%s"; //查看用户有有多少赞的key
}
